﻿using backYu.App_Start;
using Microsoft.Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

[assembly: OwinStartup(typeof(Startup))]
namespace backYu.App_Start
{
    using Abp.Owin;
    using Microsoft.Owin;
    using Microsoft.Owin.Cors;
    using Microsoft.Owin.Security;
    using Microsoft.Owin.Security.Cookies;
    using myu.Api.Controllers;
    using Owin;
    public class Startup
    {
        /// <summary>
		/// 跨域设置
		/// </summary>
		/// <param name="app">
		/// The app.
		/// </param>
		public void Configuration(IAppBuilder app)
        {
           
            app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
            app.UseOAuthBearerAuthentication(AccountController.OAuthBearerOptions);
            //app.UseCors(CorsOptions.AllowAll);
            app.UseAbp();
        }
        /**/
    }
}